class TeamListController {
    constructor($rootScope, $scope, $cookieStore, $timeout, $state, ngDialog, dialogService, getTeamList, iRunner){

    	var vm = this;

    	vm.$rootScope    = $rootScope;
    	vm.$cookieStore  = $cookieStore;
    	vm.$timeout 	 = $timeout;
    	vm.$state   	 = $state;
    	vm.ngDialog 	 = ngDialog;
    	vm.dialogService = dialogService;
    	vm.getTeamList   = getTeamList;
    	vm.iRunner 	     = iRunner;

        // 科目列表
        vm.getTeamList.code==0&&(vm.teamlist = vm.getTeamList.data);
        
        console.log(vm.teamlist)
    }

    // 编辑团队点击事件
    teamedit($event, team_id) {
        $event.preventDefault();
        $event.stopPropagation();
        this.$state.go('dashboard.race.teamedit', {team_id: team_id});
    }
}

TeamListController.$inject = ['$rootScope', '$scope', '$cookieStore', '$timeout', '$state', 'ngDialog', 'dialogService', 'getTeamList', 'iRunner']; 

export default TeamListController;